package com.gimi.cloud.jimi.manage.consumer.service.app;

import com.gimi.cloud.jimi.common.exception.MsgException;
import com.gimi.cloud.jimi.common.utils.reqhead.Response;
import org.springframework.web.bind.annotation.RequestBody;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 *  栏目下的广告
 * @auther loongs
 * @date 2017/12/27  14:39
 */
public interface AdService {
    /**
     * 获得广告列表展示（分页）
     * @return 菜单列表
     */
    Response getAdList(@RequestBody String requestBody, HttpServletRequest request, HttpServletResponse response)throws MsgException;

    /**
     * 广告对应的商品
     * @return 菜单列表
     */
    Response adRelyColumnProd(@RequestBody String requestBody, HttpServletRequest request, HttpServletResponse response) throws MsgException;

    /**
     * 添加广告
     * @return 菜单列表
     */
    Response addAd(@RequestBody String requestBody, HttpServletRequest request, HttpServletResponse response) throws MsgException;

    /**
     * 编辑广告
     * @return 菜单列表
     */
    Response editAd(@RequestBody String requestBody, HttpServletRequest request, HttpServletResponse response) throws MsgException;

    /**
     * 转跳到编辑广告页面（查询指定广告）
     * @return 菜单列表
     */
    Response gotoEditAd(@RequestBody String requestBody, HttpServletRequest request, HttpServletResponse response) throws MsgException;

    /**
     * 删除广告
     * @return 菜单列表
     */
    Response deleteAd(@RequestBody String requestBody, HttpServletRequest request, HttpServletResponse response) throws MsgException;

    /**
     * 转跳到编辑栏目页面（查询指定栏目）
     * @return 菜单列表
     */
    Response gotoAddAd(@RequestBody String requestBody, HttpServletRequest request, HttpServletResponse response) throws MsgException;

    /**
     * 发布广告
     * @return 菜单列表
     */
    Response publishAd(@RequestBody String requestBody, HttpServletRequest request, HttpServletResponse response) throws MsgException;

    /**
     * 撤下广告
     * @return 菜单列表
     */
    Response underAd(@RequestBody String requestBody, HttpServletRequest request, HttpServletResponse response) throws MsgException;

    /**
     * 上传广告图片
     * @param response
     * @param request
     * @throws Exception
     */
    Response uploadAdFile(HttpServletResponse response, HttpServletRequest request) throws Exception;

}
